package com.spider.common.bean;

import com.xuxueli.crawler.annotation.PageFieldSelect;
import com.xuxueli.crawler.annotation.PageSelect;
import com.xuxueli.crawler.conf.XxlCrawlerConf;

/**
 * @author marver
 * @Description
 * @date 2018/12/18 17:58
 */
@PageSelect(cssQuery = "#body > table > tbody > tr")
public class AgentVo {
    @PageFieldSelect(cssQuery = "td:eq(1)", selectType = XxlCrawlerConf.SelectType.TEXT)
    private String ip;

    @PageFieldSelect(cssQuery = "td:eq(2)", selectType = XxlCrawlerConf.SelectType.TEXT)
    private int port;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
    @Override
    public String toString() {
        return "AgentVo{" +
                "ip='" + ip + '\'' +
                ", port=" + port +
                '}';
    }
}
